package com.sheliduan.itlearning.blogger.model.vos.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sheliduan.itlearning.common.model.BasePageQuery;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author: 断舍离
 * @date: 2025/4/16 21:44
 * @description: 博主查询自己课程下的分页学元数据入参VO
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class FindStuUserPageListReqVO extends BasePageQuery {

    @NotNull(message = "博主id不能为空")
    private Integer bloggerId;

    private String username;

    // 起始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;

    // 结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;
}
